package com.vanceinfo;


class Car{
	private boolean moving;
	public boolean getMoving(){
		return moving;
	}
	public void  move(boolean side){
		if(side){
			System.out.println("car will continue to go");
			moving = true;
		}else{
			System.out.println("car will stop");
			moving = false;
		}
	}
}
class People{
	public boolean side;
	public boolean walk(boolean car){
		if(car){
			System.out.println("person walked on the side");
			side=true;
		}else{
			System.out.println("person walk staight");
			side=false;
		}
		return side;
	}
}
